package com.im.sso.service;

import com.im.sso.entity.User;
import com.im.sso.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Created leijun
 * @Date 2021/11/6 10:56 上午
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    /**
     * 根据用户名查询用户信息
     * @param userName
     * @return
     */
    public User selectByName(String userName) {
        return userMapper.selectByName(userName);
    }
}
